a = 20
b = 20


# ############## 身份运算符 ##############
def idOp():
    # True
    print(a is b)
    # True, id() 函数用于获取对象内存地址。
    print(id(a) == id(b))


if __name__ == '__main__':
    # 类型判断
    # <class 'str'>
    print(type('abc'))
    # True
    print(isinstance('abc', str))

    idOp()
